<!-- unordered list used as application menu and stlyed by css -->

<div id="heading">
	<div class="menubar">
		<ul class="menu">
			<li><a href="/f21na/home/home.php">Home</a></li>
			<li><a href="#">Timesheets</a>
				<ul>
					<li><a href="/f21na/timesheets/mytimesheets.php">My Timesheets</a>
					</li>
					<?php if($_SESSION['userRole'] == 1) {?>
					<li><a href="/f21na/timesheets/manageperiods.php">Manage TS Periods</a>
					</li>
					<?php }?>
				</ul>
			</li>
			<li><a href="#">Customers</a>
				<ul>
					<li><a href="/f21na/customers/newcustomer.php">New</a></li>
					<li><a href="/f21na/customers/listcustomers.php">View Customers</a>
					</li>
				</ul>
			</li>
			<li><a href="#">Projects</a>
				<ul>
					<li><a href="/f21na/projects/newproject.php">New</a></li>
					<li><a href="/f21na/projects/listprojects.php">View Projects</a></li>
				</ul>
			</li>
			<?php if($_SESSION['userRole'] == 1) {?>
			<li><a href="#">Users</a>
				<ul>
					<li><a href="/f21na/admin/newuser.php">New User</a></li>
					<li><a href="/f21na/admin/listusers.php">View Users</a></li>
				</ul>
			</li>

			<?php }?>
			<li><a href="#"><?php echo ($_SESSION['firstName'] . " " . $_SESSION['lastName']) ?>
			</a>
				<ul>
					<li><a href="/f21na/admin/editmyuser.php">Edit my account</a></li>					
					<li><a href="/f21na/logout.php">Logout</a></li>
				</ul>
			</li>
		</ul>
	</div>
</div>
